#pragma once

#define ALT_PRESSING		0x1
#define ALT_ENABLED			0x2
#define ALT_CAN_ENABLE		0x4
#define ALT_ECHO_INPUT		0x8
#define ALT_HAS_CURSOR		0x10
#define ALT_FUNC_FOUND		0x20
#define ALT_FUNC_RUNNING	0x40
#define ALT_FUNC_LOCKING	0x80
#define ALT_MSG_PUSH1		0x100
#define ALT_MSG_PUSH2		0x200
#define ALT_ERR_RUN1		0x400
#define ALT_ERR_RUN2		0x800
#define ALT_RESTART_PROG	(1<<31)
#define ALT_STATUS_LINE		(YCHRS-1)

#define ALT_WIN_CMD_ALLOC	0x1
#define ALT_WIN_CMD_FREE	0x2
#define ALT_WIN_CMD_GET		0x3
#define ALT_WIN_CMD_JUMP	0x4
#define ALT_WIN_CMD_CHECK	(0x4 | ALT_WIN_CMD_GET)
#define ALT_WIN_CMD_VIEW	0x8

#define FLAG_RESET_STACK	0x1
#define FLAG_READ_ATTR		0x1

#define MAX_FREED_INDEX		0xFFFF

#define LUA_SUBSTATES_COUNT	1
